//
//  BLWebViewController.h
//  GuChat
//
//  Created by iBenz on 15-3-26.
//  Copyright (c) 2015年 Guzhi Tech. All rights reserved.
//

#import "BLViewController.h"
#import <WebKit/WebKit.h>
#import "WKWebView+Category.h"

NS_INLINE BOOL UseWKWebView() {
    return SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0");
};

@interface BLWebViewController : BLViewController<UIWebViewDelegate,WKNavigationDelegate,WKUIDelegate>
@property (nonatomic, strong, readonly) WKWebView *webView;
@property (nonatomic, strong) NSString *url;
@property (nonatomic, assign) BOOL shareBtnHidden;
@property (nonatomic, assign) BOOL refreshBtnHidden;
@property (nonatomic, assign) BOOL scrollsToTopEnable;
/*
 * IMPORTANT:
 * IF you reset webView.delegate, under iOS8.0, and comfirm you want to startLoadAndRequest,
 * Your subclass must call '[super webView:shouldStartLoadWithRequest:navigationType:]' to make prev web snapshot for drag
 */

- (void)refreshWebView;     // 刷新页面
- (void)recreateWebView;

@end

@interface BLWebViewController (HideCloseButton)
- (void)setHideCloseButton;
@end
